<template>
    <div class="register">
    <h1>LOGO</h1>
    <van-form @submit="onSubmit">
    <van-field
        v-model="username"
        name="用户名"
        label="用户名"
        placeholder="用户名"
        :rules="[{ required: true, message: '请填写用户名' }]"
      />
      <van-field
        v-model="password"
        type="password"
        name="密码"
        label="密码"
        placeholder="密码"
        :rules="[{ required: true, message: '请填写密码' }]"
      />
      <van-field
        v-model="sms"
        center
        clearable
        label="验证码"
        placeholder="请输入验证码"
        >
        <van-button round type="info">发送验证码</van-button>
        </van-field> 
      <div style="margin: 16px">
        <van-button round block type="info" native-type="submit"
          >注册</van-button
        >
      </div>
    </van-form>
  </div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';

@Component
export default class Home extends Vue {
    private username:any=''
    private password:any=''
    private sms:any=''
    $router: any;
    onSubmit(values) {
        console.log('submit', values);
      }

}
</script>
<style lang="scss" scoped>
  .register{
    width: 100%;
    height: 100%;
    h1{
      width: 100%;
      line-height: 200px;
      font-size: 50px;
      text-align: center;
    }
    .btns{
      width: 100%;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0  100px;
      span{
        color: dodgerblue;
      }
    }
  }
</style>